#include "PAP_defs.h"
#include "derivative.h" /* include peripheral declarations */

#define ADC_CLK_DIVIDER_8 3
#define ADC_CLK_DIVIDER_4 2
#define ADC_CLK_DIVIDER_2 1
#define ADC_CLK_DIVIDER_1 0

#define ADC_SHORT_SAMPLE_TIME 0
#define ADC_LONG_SAMPLE_TIME 1

void vfnADC_ResolutionSet8 (void);

void vfnADC_ResolutionSet10 (void);

void vfnADC_LowPowerMode (void); 

void vfnADC_HighSpeedMode (void); 

void vfnADC_UseBusClock (void);

void vfnADC_ClockDivideSelect (uint8 u8ADC_ClockDivider);

void vfnADC_SetSampleTime (uint8 u8ADC_SampleTime);

void vfnADC_ChannelSelect(uint8 u8channel);

uint16 u16ADC_GetResult(void);

void vfnADC_PinEnable(uint8 u8pin);

void vfnADC_PinDisable(uint8 u8pin) ;

uint8 u8ADC_CCFCheck (void);

void vfnADC_EnableInterrupt (void);

void vfnADC_DisableInterrupt (void);

void vfnADC_ContConv (void);

void vfnADC_SingleConv (void);